package com.flowerplus.store.common.structure.presenter.photo;


import com.flowerplus.store.common.structure.mvp.BaseView;
import com.flowerplus.store.common.structure.mvp.LoadingPresenter;

import java.io.File;

/**
 * Created by z on.
 * Des:
 * Date: 2017/3/14
 */

public interface PhotoContract {
    interface Presenter extends LoadingPresenter<View> {

        void compressPhoto(File file);

        void upload(File file, int type, String userId);
    }

    interface View extends BaseView {
        void compressComplete(File file);

        void uploadComplete(String path);
        void uploadCompleteThumb(String path);
        void uploadError(String msg);

        void photoCallback(String path);
    }
}
